Actually, both sentences are possible, but they have different meanings.
In the first sentence, the object of "in" is the disguise. She was in the disguise when she came.
In the second sentence, the object of "in" is the place into which she enters. I could rephrase this as "She entered while dressed as a commoner."