You can specify --block to make the program wait until sync is complete.
You can (and have to) manually sync disk after writes to it.