Writes data from the specified stream buffer to a physical file.
eOk if the data was successfully written; otherwise, the method returns an appropriate error code.