This decree is merely the recording of a person’s deeds. The person has been given free will. He fully enjoys the choice to act or not to act of his own volition during the course of his life. He can choose to obey Allah’s commands and abstain from what Allah has prohibited, or he may choose to do otherwise.
However, Allah knows the Unseen in its entirety. He knows what that person will choose to do of his own free will throughout his life, and He records all of this.
Let us use an example to make things a bit more clear. You look in a mirror on one occasion and, you will see a clean face staring back at you. If you look at it at another time and you see unclean face, you cannot blame the mirror. It only shows what is in front of it. The same applies for a camera and the like.
The knowledge of Allah is something infinitely and incomparably far greater and far more precise than that reflection in the mirror.
The Prophet (peace be upon him) relates to us that Allah says: “O My servants! It is only your deeds that I take into account, and I recompense you for them.”
Therefore, what is mentioned in the hadîth that “what is written overtakes him” does not mean that a person is recorded as being one of the dwellers of Fire just like that without any justification. What is recorded for a person is only in accordance with what that person will have chosen for himself. Allah does not oppress anyone.
The Prophet (peace be upon him) also relates to us that Allah says: “O my servants I have forbidden oppression upon myself.”
We should not presume something about Allah that is not true.
No one will enter the Fire except on account of what he had committed of his own free will. This fact is emphasized in the Qur’ân many times over.
Allah says: “And whoever works a righteous deed – whether man or woman – and is a believer, such will enter the Paradise: therein will they have abundance without measure.” [Sûrah Ghâfir
He also says: “Then, on that day, not a soul will be wronged in the least, and ye shall but be recompensed except for what you had done.” [Sûrah YâSîn
Hence, I would say your question is misplaced, since no one will enter the Fire except on account of what he does of his own free will.