Updated cache to make block dirty on write hit