fix WriteOp append logic