How do you write your name in English?

The name is written in English: name.

name 

English [ne?m] American [ne?m]

n. Name; name; name; reputation; celebrity.

v. Name; give a name; say (... name).

adj. Famous.

You can name your pet dog.

You can name your pet dog.

She was named after her grandmother.

She was named after her grandmother.

Usage:

When used as a verb, name means "name..." or "name...". By extension, it can mean "nomination, appointment" or " enumerate".

Name is a transitive verb and can be connected to a noun or pronoun as an object. When the solution is "name", a noun can be used as the compound object of the complement; when the solution is "nomination, appointment", the word "(to be/as/for) n." can be used as the compound object of the complement.

When it means "named after...", British English often says name after, while American English uses name for.