finish write