So the disk is not damaged, hopefully?
Not damaged. You can be as certain as possible.
Hard disks have been designed for years to react to such events by parking their read/write heads in a safe "landing zone" within the first few milliseconds of an impending power failure. This minimizes the possibility of physically damaging the the hard disk due to a power interruption.
The Mac's file system also maintains file system integrity by "journaling":
Journaling is a technique that helps protect the integrity of the Mac OS Extended file systems on Mac OS X volumes. It both prevents a disk from getting into an inconsistent state and expedites disk repair if the server fails.
When you enable journaling on a disk, a continuous record of changes to files on the disk is maintained in the journal. If your computer stops because of a power failure or some other issue, the journal is used to restore the disk to a known-good state when the server restarts.
With journaling turned on, the file system logs transactions as they occur. If the server fails in the middle of an operation, the file system can "replay" the information in its log and complete the operation when the server restarts.
Although you may experience loss of user data that was buffered at the time of the failure, the file system is returned to a consistent state. In addition, restarting the computer is much faster. Always remember to back up your data as frequently as necessary.
If you had a Windows computer this might be a different story altogether, but you have a Mac. Rest easy.