Fix build issues regarding BDataIO::Flush().

* The return value of BDataIO::Flush() has changed from void to
  status_t, so adjust the code accordingly.