The sync utility force the completion of pending disk writes.

sync

This command can be used to verify that there are no pending disk writes, so that all the operations are completed, before the processor is stopped by other commands.