Writes data from the repository object to a physical file.
eOk if the data was successfully written; otherwise, the method returns an appropriate error.