He crtainly acted far better than the writing in some episodes, but nonetheless despite the writing he was still able to carry the role.
I am not quite sure about that. There have been spoofs of ST:TNG, where the makers dubbed the episodes with new lines, and some of them actually changed the character of a role completely. In German, there is the "Sinnlos im Weltraum" (Meaningless/Clueless in Space) series of spoofs, where the same scenes in which Patrick Stewards appears as a sincere, deep thinker with the original lines becomes an aggressive alcoholic - just by changing the lines. (For reference: Schwarzer Kaffee, only suitable for people with a profound knowledge of the German language.)