Handle incomplete file write to cache