server.c: Update file size when writing files