Apologies for posting a completely off-topic comment, but as an ESL person this interests me.
I would have thought that both were different, but grammatically correct, with almost identical meaning.
"A properly written sentence" is a sentence that is properly written, and "a proper written sentence" is a written sentence that is proper.
But now I have achieved semantic saturation, and am not sure anymore.