binbuf write