write a commit