"Referred by" usually means a current employee told you about the position. If a friend told you to apply, you should write their name on your application.