A disk drive is disclosed comprising a disk, a buffer memory, and control
circuitry operable to receive a write command from a host, wherein the
write command comprises write data and a write data address. Write EDC
data is generated in response to the write data and the write data
address, wherein the write data and the write EDC data are stored in the
buffer memory. The write data is read from the buffer memory, and write
check data is generated in response to the write data and the write data
address. The write EDC data is read from the buffer memory and compared
to the write check data to detect a write error. If the write error is
not detected, the write data is written to the disk without writing the
write EDC data to the disk.