Allocate
Mainly for outer allocation and fix fstream bug(create or whether)