add user interface, fix bugs of data sync

However, something is wrong when sync index of wrote pages. Come on,
boy!
fix bug of synchronization of wrote pages

something is wrong with writeback. Do it next week !