This sentence is incorrect, "inside" should be changed just to "in", to read: Science-fiction writers set their stories in the future.
Inside relates to something that can be contained, but the future is infinite and one can just be 'in' it, not 'inside' it completely.