All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
Acts of disobedience could be attributed to the devil to some extent as he is the cause of the occurrence of these acts. He is the one who whispers to the person and induces and lures him to commit such acts, and misguides him. Allaah says while speaking about Satan (what means): {Because You have sent me astray, surely I will sit in wait against them (human beings) on Your Straight Path.}[Quran 7:16]
Acts of disobedience could also be attributed to the person as he is the real doer of such acts with his own will and ability. He has the choice and freedom to choose. Allaah Says (what means): {To whomsoever of you who wills to walk straight.} [Quran 81:28]
These acts could also be attributed to Allaah in the sense that He is the One Who created the power and will in the human being to do such acts. Allaah says (what means): {Allaah is the Creator of all things and He is the Disposer of affairs over all things.} [Quran 39:62]
As regards what Allaah does and creates, then all His acts are good. He does not create a pure evil, that is why the Prophet mentioned in the supplication before reciting the Quran in the prayer: "The whole of good is in Your Hand and evil should not be attributed to you." [Muslim]
Since, it is confirmed that acts of disobedience have three sources, each in a different sense; this means that there is no contradiction.
Allaah Knows best.