update BufWritePre