People are often surprised to learn that alright is not an accepted spelling of all right. Although the one-word spelling of alright is seen in informal writing, teachers and editors will always consider it incorrect. To use the expression with impunity, it is best to spell it as two words: all right.
It’s possible that you stared at your paper in wonder the first time your English teacher marked alright as an incorrect spelling.