Check the `n, err` from `Write`.