fix mjconnb write bug