It can't write to that file, but assuming it can write to the directory it can just delete the file and create a new one.
You don't need to be able to write to a file in order to delete it under the linux privilege model because deleting a file doesn't change it in any way - it changes the directory that contains the file. So it is the directory you need to be able to write to in order to delete a file.