finish write.