Update write.go