update write.cpp
update owrite.cpp
update owrite