Need to implement dirty blocks in cache.