fixed NPE in WriteDataMain on parent directory creation.