Which one is correct?

It is written correctly. OR It is correctly written.

I'll be thankful to get some help.

Thank you.