You bring up some great questions. The problems you address are some of the reasons that I believe there was a space of time between the original creation of God's heaven and earth and the six-day creation that makes up the bulk of Genesis chapter one. The six days of creation do not mention the creation of God's heaven or the creation of hell. Neither do they mention the creation of the angelic beings. Here is my belief concerning the creation of these things.
First, God created His heaven. This is recorded in Genesis 1:1. The wisdom of the King James Bible is seen in the fact that Genesis 1:1 states that God created the "heaven" (singular) and the earth in the beginning. That heaven is the third heaven mentioned by Paul in 2Corinthians 12:2. At this time, He also created the original earth. This should not surprise us since there is going to be a new earth one of these days.
Second, God created the heavenly beings. There was no need to create the angels before there was a place for them to dwell. This creation would include the creation of Lucifer before he sinned.
Third, in this initial world, God gave Lucifer rule but his fall led to the entire destruction of that world. This doctrine is controversial, but it will explain the problems you are dealing with and others as well. The pride and fall of Lucifer as described in Isaiah 14:12-15 is best put in this time.
Fourth, God created hell for the devil and his angels. Matthew 25:41 states, "Then shall he say also unto them on the left hand, Depart from me, ye cursed, into everlasting fire, prepared for the devil and his angels." Two points: first, there was no point in creating this place of punishment before the devil and his angels rebelled; and, second, it must have been created before the fall of Adam or else it would have been created for him and his descendants too.
Fifth, after all of the above, we have the six-day creation that makes up the bulk of Genesis chapter one.