During the power failure your BIOS must have reset to defaults which include IDE mode. You had to reset SATA mode to AHCI which is how your Win7 is installed, correct?