Added method that blocks thread until disk writes finish.

I had the need to wait until all disk writes completed before commencing another operation so added a simple dispatch sync method. Perhaps this will be useful to someone.