add back the filemode to the open(O_CREAT)

somehow inadvertantly dropped this.