buffer write fail