updates the size of the file (in the parent directory)when it writes