Implemented SyncFIle.sync()

Implemented SyncFIle.sync() in SyncFileImpl. TODO: use the Path class
instead of the File class