Since you are describing a passage,the 800 words is like an adjective,so it should be
I wrote an eight-hundred words passage in english class yesterday.错,我已经选了第2个,老师说是对的I wrote an eight hundred word passage is correct, your teacher is wrong. I asked my American friends, and they gave the same answer.Ok