“Write” and “right” sounds the same but they both have different meanings.
“Write” means to write an essay, sentence, words, article, or anything else.
An example, “The teacher told the class to write about their favorite thing.”
“Right” means correct, not wrong.
An example, “She answered all the questions right.”