Update write.c