add write batch