Fixed inconsistencies in marking blocks read/written to