write finish