dfs: refine code

decrease indentation to make cleaner code
fix mkfs bug when there is no mkfs implementation