Yes we have free will to obey or disobey God. BUT God already KNOWS what we are going to choose! It is already written!
Are you denying that God has NO control over his creation?
Are you denying that God does not know what is going to happen?
If God does not know what is going to happen then He would not know when the Day of Judgement is.
God is the only one that knows when the day of judgement is. (yes even Jesus doesnt know)
If God doesnt know what we were going to choose in this life, to obey His Law or to Disobey then why would he have created a hell for the disbelievers?