This is a complicated question. Grammatically, you are right (写得很好). We used to distinguish those three "de" (的、地和得). But as I know, nowadays, students in China are not asked to do so any more. I guess that's why you saw some chinese wrote this in a "wrong" way. But in my opinion, it is better that we still use them grammatically correct.