Can I write the reference on behalf of my referee if they don’t have the time to do it? 

No, you cannot write your own reference.