So you had Windows already installed on C and attempted to do a 'reinstall' which saw you already had Windows in C and to prevent problems with two OS installations in the same partition it suggested to install on D?
I've seen that happen before, and although theoretically they should be independent, deleting the unnecessary one comes out to be impossible due to some files being in use.
The best solution would be to do a fresh install, formatting both disks.