Trigger BufWritePost event via BufWriteCmd/FileWriteCmd

This function is used for both `BufWriteCmd` and `FileWriteCmd`, so we can't unconditionally emit `BufWritePost` here.  Take a look at how `BufWritePre` is handled.