Fixed a bug in ata.c: mismatch between block number and sector number