fsync breaks img files

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>