She denied that she had been written the letter.
She denied that she had written the letter
She denied that she wrote the letter
She denied that she has written the letter.