Fixes bugs in mkdir. Still needing to load data from disk