Fixed bad behaviur of errors in write / read. Fixed test program to not
write/read in sector 1440. Sectors goes from 0 to 1439.