[block manager] The dirty flag for blocks was never being cleared, causes redundant writes.