Thank you for your reply. My star command used the same --genomeDir that I checked are the same. Is that because of the data?
The command I used to get the bam file:
STAR --runThreadN 32 --runMode alignReads --genomeDir /genomeDir --readFilesIn /1.fq /2.fq --outSAMtype BAM Unsorted --outFileNamePrefix aligned