the correct answer is C. 
A translates to - i went to
B translates to- i am going to 
C translates to - i was going to 
D translates to- i will go to 
the question translates to: 
Last night ____ sleep early, but i decided to finish my homework and it was too late. 
therefore, the answer that best fits is option C. 
hope this helps !!