Check for buffer write failure in :w