I guess "have written" can be ok. Like: "It was the last time I have written an article."
EDIT: maybe it's being the last time is considered as a sort of connetion with the present, thus making Present Perfect fit.
By the way, a google search returned equal numbers of entries of
1. "it has...