how do I use と書くいてありました in different tempus


I'm struggling to learn how to use と書くいてありました in citing from things I have
read and learn to quote it in the japanese way. the way I use 書くいて is
apparently in the wrong tempus so is it okay to use either 書くありました or 書きありました?

Thank you in advance!

