fix errors caused by missing load instructions
improve creating alloca instruction

if the allocation is for a string constant, its type is should be i8*.
But previous implementation allocated i8 value and it caused an error.