fixes for blargSnes

fixed gesize
fixed malloc in dir
fixed dir
fixed linear alloc