fs: fix sync.c

Signed-off-by: Locasto <amperific@gmail.com>