[BAM]Fixes
[BAM]Implement: Added malloc parameters check in alig.c