Hi Danyel,
I presume that you started writing two hours ago, and you are currently still writing.
For describing an event that began in the past and is still occurring, we use the present perfect continuous tense. To construct this tense, we use "has (singular) / have (plural) " + "been" + "verb (continuous)".
I have been writing for two hours.
If you would like to focus on an event that occurred some time in the past with the effect still applicable at the present, use present perfect tense "has (singular) / have (plural)" + "verb (past perfect form)"
I have written the article for two hours.
OR
I have done my homework. (You did your homework. Now, you homework is still considered as done.)
However, it is grammatically wrong to use "have been written".
Hope this helps.
Cheers, Lance