Fix reading and writing disk on block boundaries.