finish Data.write