add dir alloc and file alloc.h