Remove promise assignment in write.