From [1], "Adjectives modify nouns; adverbs modify verbs, ..." - so though you're right that both sentences are grammatical, I think a lot of styles would have a problem with "a proper written sentence" since what you actually mean to say is "a properly written sentence" (unless you make it clear that you speak of "proper sentences", probably).